package org.example.ymcc.mapper;

import org.apache.ibatis.annotations.Param;
import org.example.ymcc.domain.Course;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author zcj
 * @since 2024-06-11
 */
public interface CourseMapper extends BaseMapper<Course> {

    void saveCourseTeacher(@Param("courseId") Long courseId,@Param("ids") List<Long> teacharIds);

    List<Long> selectTeacherByCourseId(Long courseId);

    void deleteTeacherByCourseId(Long id);

}
